<?php
/**
 *  view module: menu
 *  file: modules/menu.php
 */
?>

<div class="clr"></div>
 <nav>
   <?php if( true == $this->session->userdata('user_logged') ) {  ?>
  
    <div class="main-menu">
      <ul class="menu">
          <li <?php if("profile" == $menu_active) echo " class='active'";?> ><a href="<?php echo base_url(); ?>profile.htm"><?php echo lang('menu_my_profile'); ?></a></li>
          <li <?php if("search" == $menu_active) echo " class='active'";?> ><a href="<?php echo base_url(); ?>search.htm"><?php echo lang('menu_search'); ?></a></li>
          <li <?php if("conversation" == $menu_active) echo " class='active'";?> ><a href="<?php echo base_url(); ?>conversation.htm"><?php echo lang('menu_conversation'); ?></a></li>
          <li <?php if("payment" == $menu_active) echo " class='active'";?> ><a href="<?php echo base_url(); ?>payment.htm"><?php echo lang('menu_load_coins'); ?></a></li>
          <li <?php if("support" == $menu_active) echo " class='active'";?> ><a href="<?php echo base_url(); ?>support.htm"><?php echo lang('menu_support'); ?></a></li>
      </ul>
      <?php
      // Start right part menu 
      echo "\n\n<div id='right_part_menu'>\n\n";
      
      $this->load->view('modules/right_part_menu');
       
      echo "\n</div> <!-- End MENU -->\n\n\n";
        // End right part menu line
      ?>
      
    </div><!--end main-menu-->
    
    
   <?php } ?>
 </nav>
 <div class="clr"></div>
